// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import DataV from '@jiaminghi/data-view'
Vue.config.productionTip = false
Vue.use(ElementUI)
Vue.use(DataV)
import axios from 'axios';
Vue.prototype.$axios = axios;
import htmlToPdf from '@/utils/htmlToPdf'
// 使用Vue.use()方法就会调用工具方法中的install方法
Vue.use(htmlToPdf)
import moment from 'moment';
import 'moment/locale/zh-cn'; // 引入 moment 的中文语言包
// 设置 moment 库的全局语言
moment.locale('zh-cn');
// 将 moment 挂载到 Vue 原型上，使其在所有组件中可用
Vue.prototype.$moment = moment;

// 引入全局css
import '@/assets/css/style.css'; // 引入样式文件
import VueQuillEditor from 'vue-quill-editor'

import 'quill/dist/quill.core.css' // import styles
import 'quill/dist/quill.snow.css' // for snow theme
import 'quill/dist/quill.bubble.css' // for bubble theme

Vue.use(VueQuillEditor)

// 引入全局css
// import './assets/scss/style.scss';

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
